!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[ComboBoxInput]",["react","reactDOM"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[ComboBoxInput]"]=t(require("react"),require("react-dom")):e["rb_wixui.thunderbolt[ComboBoxInput]"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,(function(e,t){return function(){var n={8266:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(o&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},5329:function(t){"use strict";t.exports=e},95561:function(e){"use strict";e.exports=t},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.entries(e).reduce(((e,[t,n])=>(t.includes("data-")&&(e[t]=n),e)),{});function s(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{const n=[];return e&&n.push(`${c}${e}`),t.forEach((e=>{e&&(n.push(`${c}${e}`),n.push(e))})),n.join(" ")},p=13,d=32,f=35,m=36,v=27,h=37,g=38,y=39,b=40,x=9,w="Enter",O=" ",E="ArrowDown",C="ArrowUp",L="Escape";function k(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}k(d),k(p),k(v);const M=["aria-id","aria-metadata","aria-type"],S=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>(t.includes(n)||(e[n]=o),e)),{}),I=e=>{const{role:t,tabIndex:n,tabindex:o,screenReader:r,lang:i,ariaAttributes:a={}}=e,s=Object.entries(a).reduce(((e,[t,n])=>({...e,[`aria-${t}`.toLowerCase()]:n})),{});return{role:t,tabIndex:n??o,screenReader:r,ariaAttributes:S(s,M),lang:i}},D=({size:e,...t})=>n.createElement("svg",{viewBox:"0 0 20 20",fill:"currentColor",width:e||"20",height:e||"20",...t},n.createElement("path",{fillRule:"evenodd",d:"M9.5,3 C13.084,3 16,5.916 16,9.5 C16,13.084 13.084,16 9.5,16 C5.916,16 3,13.084 3,9.5 C3,5.916 5.916,3 9.5,3 Z M9.5,4 C6.467,4 4,6.467 4,9.5 C4,12.533 6.467,15 9.5,15 C12.533,15 15,12.533 15,9.5 C15,6.467 12.533,4 9.5,4 Z M10,11 L10,12 L9,12 L9,11 L10,11 Z M10,7 L10,10 L9,10 L9,7 L10,7 Z"}));D.displayName="ErrorSmall";var P=D,j="TLWrjM",A="GIPQqH",B="JNgJbf";const N=e=>{let{errorMessage:t,errorMessageType:o,shouldShowValidityIndication:r,translations:i,dataHook:a,componentViewMode:s}=e;const l="editor"===s?(null==i?void 0:i.errorMessage)||"Error text displays here.":t;return"inline"===o&&r&&l?n.createElement("div",{"data-hook":a||"inline-error-message",className:j},n.createElement(P,{className:A}),n.createElement("span",{className:B},l)):null};var R={root:"dropdown",label:"dropdown__label",icon:"dropdown__icon",input:"dropdown__input",list:"dropdown__list"},V=r(95561);const F=e=>{let{callback:t,ref:o,elem:r}=e;(0,n.useEffect)((()=>{const e=new ResizeObserver(t);return null!=o&&o.current&&e.observe(o.current),r&&e.observe(r),()=>{e.disconnect()}}),[o,r,t])};function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function W(e){return e instanceof T(e).Element||e instanceof Element}function _(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}var q=Math.max,U=Math.min,z=Math.round;function K(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Q(){return!/^((?!chrome|android).)*safari/i.test(K())}function Z(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&_(e)&&(r=e.offsetWidth>0&&z(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&z(o.height)/e.offsetHeight||1);var a=(W(e)?T(e):window).visualViewport,s=!Q()&&n,l=(o.left+(s&&a?a.offsetLeft:0))/r,c=(o.top+(s&&a?a.offsetTop:0))/i,u=o.width/r,p=o.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function $(e){var t=T(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(e){return e?(e.nodeName||"").toLowerCase():null}function J(e){return((W(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y(e){return Z(J(e)).left+$(e).scrollLeft}function X(e){return T(e).getComputedStyle(e)}function ee(e){var t=X(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function te(e,t,n){void 0===n&&(n=!1);var o,r,i=_(t),a=_(t)&&function(e){var t=e.getBoundingClientRect(),n=z(t.width)/e.offsetWidth||1,o=z(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=J(t),l=Z(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==G(t)||ee(s))&&(c=(o=t)!==T(o)&&_(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:$(o)),_(t)?((u=Z(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Y(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ne(e){var t=Z(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function oe(e){return"html"===G(e)?e:e.assignedSlot||e.parentNode||(H(e)?e.host:null)||J(e)}function re(e){return["html","body","#document"].indexOf(G(e))>=0?e.ownerDocument.body:_(e)&&ee(e)?e:re(oe(e))}function ie(e,t){var n;void 0===t&&(t=[]);var o=re(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=T(o),a=r?[i].concat(i.visualViewport||[],ee(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(ie(oe(a)))}function ae(e){return["table","td","th"].indexOf(G(e))>=0}function se(e){return _(e)&&"fixed"!==X(e).position?e.offsetParent:null}function le(e){for(var t=T(e),n=se(e);n&&ae(n)&&"static"===X(n).position;)n=se(n);return n&&("html"===G(n)||"body"===G(n)&&"static"===X(n).position)?t:n||function(e){var t=/firefox/i.test(K());if(/Trident/i.test(K())&&_(e)&&"fixed"===X(e).position)return null;var n=oe(e);for(H(n)&&(n=n.host);_(n)&&["html","body"].indexOf(G(n))<0;){var o=X(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var ce="top",ue="bottom",pe="right",de="left",fe="auto",me=[ce,ue,pe,de],ve="start",he="end",ge="viewport",ye="popper",be=me.reduce((function(e,t){return e.concat([t+"-"+ve,t+"-"+he])}),[]),xe=[].concat(me,[fe]).reduce((function(e,t){return e.concat([t,t+"-"+ve,t+"-"+he])}),[]),we=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Oe(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var Ee={placement:"bottom",modifiers:[],strategy:"absolute"};function Ce(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function De(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Me(r):null,a=r?Se(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case ce:t={x:s,y:n.y-o.height};break;case ue:t={x:s,y:n.y+n.height};break;case pe:t={x:n.x+n.width,y:l};break;case de:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Ie(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ve:t[c]=t[c]-(n[u]/2-o[u]/2);break;case he:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}var Pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function je(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,m=a.y,v=void 0===m?0:m,h="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=h.x,v=h.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=de,x=ce,w=window;if(c){var O=le(n),E="clientHeight",C="clientWidth";if(O===T(n)&&"static"!==X(O=J(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),r===ce||(r===de||r===pe)&&i===he)x=ue,v-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-o.height,v*=l?1:-1;if(r===de||(r===ce||r===ue)&&i===he)b=pe,f-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[C])-o.width,f*=l?1:-1}var L,k=Object.assign({position:s},c&&Pe),M=!0===u?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:z(n*r)/r||0,y:z(o*r)/r||0}}({x:f,y:v},T(n)):{x:f,y:v};return f=M.x,v=M.y,l?Object.assign({},k,((L={})[x]=y?"0":"",L[b]=g?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",L)):Object.assign({},k,((t={})[x]=y?v+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var Ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=xe.reduce((function(e,n){return e[n]=function(e,t,n){var o=Me(e),r=[de,ce].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[de,pe].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}},Be={left:"right",right:"left",bottom:"top",top:"bottom"};function Ne(e){return e.replace(/left|right|bottom|top/g,(function(e){return Be[e]}))}var Re={start:"end",end:"start"};function Ve(e){return e.replace(/start|end/g,(function(e){return Re[e]}))}function Fe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&H(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Te(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function We(e,t,n){return t===ge?Te(function(e,t){var n=T(e),o=J(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;var c=Q();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s+Y(e),y:l}}(e,n)):W(t)?function(e,t){var n=Z(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Te(function(e){var t,n=J(e),o=$(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Y(e),l=-o.scrollTop;return"rtl"===X(r||n).direction&&(s+=q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(J(e)))}function _e(e,t,n,o){var r="clippingParents"===t?function(e){var t=ie(oe(e)),n=["absolute","fixed"].indexOf(X(e).position)>=0&&_(e)?le(e):e;return W(n)?t.filter((function(e){return W(e)&&Fe(e,n)&&"body"!==G(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],s=i.reduce((function(t,n){var r=We(e,n,o);return t.top=q(r.top,t.top),t.right=U(r.right,t.right),t.bottom=U(r.bottom,t.bottom),t.left=q(r.left,t.left),t}),We(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function He(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ue(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ge:c,p=n.elementContext,d=void 0===p?ye:p,f=n.altBoundary,m=void 0!==f&&f,v=n.padding,h=void 0===v?0:v,g=He("number"!=typeof h?h:qe(h,me)),y=d===ye?"reference":ye,b=e.rects.popper,x=e.elements[m?y:d],w=_e(W(x)?x:x.contextElement||J(e.elements.popper),l,u,a),O=Z(e.elements.reference),E=De({reference:O,element:b,strategy:"absolute",placement:r}),C=Te(Object.assign({},b,E)),L=d===ye?C:O,k={top:w.top-L.top+g.top,bottom:L.bottom-w.bottom+g.bottom,left:w.left-L.left+g.left,right:L.right-w.right+g.right},M=e.modifiersData.offset;if(d===ye&&M){var S=M[r];Object.keys(k).forEach((function(e){var t=[pe,ue].indexOf(e)>=0?1:-1,n=[ce,ue].indexOf(e)>=0?"y":"x";k[e]+=S[n]*t}))}return k}function ze(e,t,n){return q(e,U(t,n))}var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,m=n.tetherOffset,v=void 0===m?0:m,h=Ue(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),g=Me(t.placement),y=Se(t.placement),b=!y,x=Ie(g),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(O){if(i){var I,D="y"===x?ce:de,P="y"===x?ue:pe,j="y"===x?"height":"width",A=O[x],B=A+h[D],N=A-h[P],R=f?-C[j]/2:0,V=y===ve?E[j]:C[j],F=y===ve?-C[j]:-E[j],T=t.elements.arrow,W=f&&T?ne(T):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=_[D],z=_[P],K=ze(0,E[j],W[j]),Q=b?E[j]/2-R-K-H-k.mainAxis:V-K-H-k.mainAxis,Z=b?-E[j]/2+R+K+z+k.mainAxis:F+K+z+k.mainAxis,$=t.elements.arrow&&le(t.elements.arrow),G=$?"y"===x?$.clientTop||0:$.clientLeft||0:0,J=null!=(I=null==M?void 0:M[x])?I:0,Y=A+Z-J,X=ze(f?U(B,A+Q-J-G):B,A,f?q(N,Y):N);O[x]=X,S[x]=X-A}if(s){var ee,te="x"===x?ce:de,oe="x"===x?ue:pe,re=O[w],ie="y"===w?"height":"width",ae=re+h[te],se=re-h[oe],fe=-1!==[ce,de].indexOf(g),me=null!=(ee=null==M?void 0:M[w])?ee:0,he=fe?ae:re-E[ie]-C[ie]-me+k.altAxis,ge=fe?re+E[ie]+C[ie]-me-k.altAxis:se,ye=f&&fe?function(e,t,n){var o=ze(e,t,n);return o>n?n:o}(he,re,ge):ze(f?he:ae,re,f?ge:se);O[w]=ye,S[w]=ye-re}t.modifiersData[o]=S}},requiresIfExists:["offset"]};var Qe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Me(n.placement),l=Ie(s),c=[de,pe].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return He("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qe(e,me))}(r.padding,n),p=ne(i),d="y"===l?ce:de,f="y"===l?ue:pe,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],h=le(i),g=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,y=m/2-v/2,b=u[d],x=g-p[c]-u[f],w=g/2-p[c]/2+y,O=ze(b,w,x),E=l;n.modifiersData[o]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Fe(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ze(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $e(e){return[ce,pe,ue,de].some((function(t){return e[t]>=0}))}var Ge=Le({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,l=T(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ke)})),s&&l.addEventListener("resize",n.update,ke),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ke)})),s&&l.removeEventListener("resize",n.update,ke)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=De({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Me(t.placement),variation:Se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,je(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,je(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];_(r)&&G(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_(o)&&G(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},Ae,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=void 0===f||f,v=n.allowedAutoPlacements,h=t.options.placement,g=Me(h),y=l||(g===h||!m?[Ne(h)]:function(e){if(Me(e)===fe)return[];var t=Ne(e);return[Ve(e),t,Ve(t)]}(h)),b=[h].concat(y).reduce((function(e,n){return e.concat(Me(n)===fe?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xe:l,u=Se(o),p=u?s?be:be.filter((function(e){return Se(e)===u})):me,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=Ue(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[Me(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,C=b[0],L=0;L=0,D=I?"width":"height",P=Ue(t,{placement:k,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),j=I?S?pe:de:S?ue:ce;x[D]>w[D]&&(j=Ne(j));var A=Ne(j),B=[];if(i&&B.push(P[M]<=0),s&&B.push(P[j]<=0,P[A]<=0),B.every((function(e){return e}))){C=k,E=!1;break}O.set(k,B)}if(E)for(var N=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},R=m?3:1;R>0;R--){if("break"===N(R))break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ke,Qe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ue(t,{elementContext:"reference"}),s=Ue(t,{altBoundary:!0}),l=Ze(a,o),c=Ze(s,r,i),u=$e(l),p=$e(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Je=r(8266),Ye=r.n(Je),Xe=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},et="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,tt=[];function nt(e){const[t,o]=n.useState(null),[r,i]=n.useState(null),{styles:a,attributes:s,update:l}=function(e,t,o){void 0===o&&(o={});var r=n.useRef(null),i={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||tt},a=n.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);V.flushSync((function(){l({styles:Xe(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Xe(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=n.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Ye()(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),p=n.useRef();return et((function(){p.current&&p.current.setOptions(u)}),[u]),et((function(){if(null!=e&&null!=t){var n=(o.createPopper||Ge)(e,t,u);return p.current=n,function(){n.destroy(),p.current=null}}}),[e,t,o.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}(t,r,{...e});return{ref:t,setRef:o,popper:r,setPopper:i,styles:a,attributes:s,update:l}}const ot=e=>e+"-portal-wrapper-id";const rt=(e,t,n,o)=>{let r=document.getElementById(ot(e));if(!r){r=((e,t)=>{const n=document.createElement("div");n.setAttribute("data-testid",(e=>e+"-portal-wrapper-test-id")(e)),n.setAttribute("id",ot(e)),t&&t.split(" ").forEach((e=>n.classList.add(e)));return n})(e,o);let t=document.body;n&&(t=document.getElementById(n)||document.body),t.appendChild(r)}t(r)},it=e=>null==e?void 0:e.remove();function at(e){let{id:t,containerId:n,shouldMountWrapper:r,popperOptions:i={},className:a}=e;const{mountPortalWrapper:s,unMountPortalWrapper:l,wrapperEl:c}=function(e){let{compId:t,containerId:n,shouldMount:r,className:i}=e;const[a,s]=o().useState(),l=o().useCallback((()=>rt(t,s,n,i)),[i,t,n]),c=o().useCallback((()=>{const e=document.getElementById(ot(t));e&&it(e)}),[t]);return o().useEffect((()=>(r&&l(),c)),[r,c,l]),o().useEffect((()=>()=>c()),[c]),{wrapperEl:a,mountPortalWrapper:l,unMountPortalWrapper:c}}({compId:t,shouldMount:r,containerId:n,className:a});return{...nt(i),poppersWrapper:c,mountPortalPoppersWrapper:s,unMountPortalPoppersWrapper:l}}const st=(e,t)=>{var n;const o=null==(n=e.find((e=>e.value===t)))?void 0:n.selectedText;return null!=o},lt=()=>{},ct=e=>e.getBoundingClientRect().width,ut="designable_list",pt="designable_list_option",dt=function(e,t){const n=e.offsetTop,o=n+e.getBoundingClientRect().height,r=t.scrollTop,i=r+t.offsetHeight;return n>=r&&o<=i};function ft(e,t){void 0===t&&(t=null);const o=(0,n.useRef)(t);return(0,n.useEffect)((()=>{o.current=e}),[e]),o.current}var mt="sTe93V",vt="DYoNOT",ht="_Gybpq",gt="CEK3nk",yt="P6sHUt";var bt=e=>{const{id:o,value:r,options:i,hoveredOptionIndex:s,className:c,setDesignableListElem:u=lt,isComboBoxSelectionFeedbackExperimentOpen:p,setHoveredOptionIndex:d=lt,onSelectedOptionChange:f=lt}=e,m="menuitem",v=e.filteredOptions||e.options,[h,g]=n.useState(null),[y,b]=n.useState(!1),x=n.useRef(null),k=n.useRef(null),M=n.useRef(null),S=n.useRef(null),[I,D]=n.useState({"--optionLineHeight":"1.3em"}),P=ft(s)||0,j=n.useCallback((()=>{const e=k.current;if(e){const t=e.getBoundingClientRect();D({"--optionLineHeight":0===t.height?"1.3em":t.height+"px"})}}),[k]);F({ref:k,callback:j});const A=n.useCallback((function(e,t){void 0===t&&(t=!0),f(null==e?void 0:e.value,t)}),[f]);n.useEffect((()=>{const e=M.current||x.current;e&&h&&(h.scrollTop=e.offsetTop)}),[h,I]);const B=n.useMemo((()=>v.findIndex((e=>e.value===r))),[v,r]);n.useEffect((()=>{const e=S.current||M.current||x.current;y||-1===s||(s>=P?(e=>{let{optionEl:t,listEl:n}=e;t&&n&&!dt(t,n)&&(n.scrollTop=t.offsetTop-n.offsetHeight+t.getBoundingClientRect().height)})({optionEl:e,listEl:h}):(e=>{let{optionEl:t,listEl:n,hoveredOptionIndex:o}=e;t&&n&&!dt(t,n)&&(n.scrollTop=t.getBoundingClientRect().height*o)})({optionEl:e,listEl:h,hoveredOptionIndex:s}))}),[s,P,h,y]);const N=n.useMemo((()=>i.findIndex((e=>!!e.text))),[i]),[R,V]=n.useState(-1===s?0:s),T=n.useCallback((e=>{const t=e=>{V((t=>{const n=Math.max(0,Math.min(t+e,i.length-1));d(n);const o=i[n];return A(o,!1),n}))},n=()=>{if(-1!==R){const e=i[R];A(e)}},o={[C]:()=>t(-1),[E]:()=>t(1),[w]:()=>n(),[O]:()=>n(),[L]:()=>A(i[B])};var r;p&&(e.preventDefault(),null==(r=o[e.key])||r.call(o))}),[A,R,i,d,B,p]);n.useEffect((()=>{if(!p)return;const e=document.getElementById(m+"-"+s);e&&-1!==s&&e.focus()}),[s,p]);const W=e=>e===N?k:void 0;return n.createElement("div",t()({id:(_=o,"listModal_"+_)},a(e),{className:l(vt,c),tabIndex:-1}),n.createElement("div",{ref:e=>{u(e),g(e)},"data-testid":ut,className:ht,role:"listbox",style:{...I}},i.map(((e,t)=>{return n.createElement("div",{onKeyDown:T,key:t,id:m+"-"+t,ref:(o=t,o===B?M:0===o?x:o===s?S:void 0),className:l(gt,{[mt]:s===t}),onClick:()=>A(e),onMouseEnter:()=>(d(t),void b(!0)),onMouseLeave:()=>(d(-1),void b(!1)),"data-testid":pt,role:"option","aria-selected":e.value===r,style:e.style,tabIndex:s===t?0:-1},n.createElement("div",{ref:W(t),className:yt},e.text));var o}))));var _};const xt=function(e,t,o){void 0===o&&(o=!0),function(e,t,o,r){void 0===r&&(r=!0),(0,n.useEffect)((()=>{const n=e=>{const n=e.target;if(n){for(const e of t){var r;if(e instanceof HTMLElement){if(e&&e.contains(n))return}else if(null!=e&&null!=(r=e.current)&&r.contains(n))return}o()}};return document.addEventListener(e,n,r),()=>{document.removeEventListener(e,n,r)}}),[...t,o,e])}("click",e,t,o)},wt=()=>{},Ot=e=>{const{styles:t,isOpen:o}=e;return n.createElement("div",{className:t.arrow},n.createElement("div",{className:l(t.svgContainer,{[t.arrowOpen]:o})},n.createElement("svg",{className:l(t.icon,u(R.icon)),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.2828 4.89817","aria-hidden":"true"},n.createElement("path",{d:"M4.64116,4.89817a.5001.5001,0,0,1-.34277-.13574L.15727.86448A.50018.50018,0,0,1,.84282.136L4.64116,3.71165,8.44.136a.50018.50018,0,0,1,.68555.72852L4.98393,4.76243A.5001.5001,0,0,1,4.64116,4.89817Z"}))))},Et=(e,o)=>{const{className:r,styles:i,id:a,placeholder:s,onFocus:c,onSelectedOptionChange:p=lt,onBlur:d,onMouseDown:f,onKeyDown:m,disabled:v,required:h,value:g,options:y,isOpen:b,setWrapperRef:x,hoveredOptionIndex:w=-1,onClick:O,ariaAttributes:E,designableList:C,shouldShowValidityIndication:L,isValid:k,lang:M}=e,[S,D]=n.useState(!0);n.useEffect((()=>D(!1)),[]);const[P,j]=n.useState(y),A="duplicatedValue",B=n.useCallback(((e,t,n)=>{var o;if((null==(o=P[0])?void 0:o.value)===t)return;const r=[...y],i=e-n,a=r[i].value===t?i:i-1,[s]=r.splice(a,1);r.unshift(s),j(r)}),[P,y]);n.useEffect((()=>{j(y)}),[y]),Lt({options:y,value:g,moveSelectedOptionToHeadOfList:B});const N=I({ariaAttributes:E,lang:M});return n.createElement("div",{ref:x,className:i.selectorWrapper},n.createElement("select",t()({ref:o,className:l(u(R.input),{[r]:!0,[i.invalid]:L&&!k}),id:"collection_"+a,"data-testid":"select-trigger",onClick:O,onFocus:c,onChange:e=>{let t=e.target.value;const n=e.target.selectedIndex;t===A&&(t=e.target[n].getAttribute("original-value")),st(y,t)&&B(n,t,2),p(t)},onBlur:d,onMouseDown:f,onKeyDown:m,disabled:v,required:h,"aria-required":h,value:g,lang:N.lang},N.ariaAttributes,{"aria-activedescendant":w>=0?"menuitem-"+w:void 0,"aria-expanded":C?b:void 0,"aria-invalid":!!L&&!k}),(s.text||!g?[n.createElement("option",{value:"",disabled:!0,className:l(i.option,i.placeholder),key:"placeholder"},s.text)]:[]).concat((()=>{const e=st(P,g);return S?[]:P.map((t=>t.value===g&&e?[n.createElement("option",{hidden:!0,disabled:!0,value:t.value,key:t.key},t.selectedText),n.createElement("option",{value:A,"original-value":t.value,key:t.key+"-"+t.value,"aria-selected":!0},t.text)]:n.createElement("option",{value:t.value,className:i.option,key:t.key,"aria-selected":t.value===g},t.text))).flat()})())),n.createElement(Ot,{styles:i,isOpen:b}))};var Ct=n.forwardRef(Et);const Lt=e=>{let{value:t,options:o,moveSelectedOptionToHeadOfList:r}=e;n.useEffect((()=>{const e=[...o];if(t){const n=e.findIndex((e=>e.value===t)),o=e[n];null!=o&&o.selectedText&&r(n,o.value,0)}}),[o,t,r])};var kt="zwRuwH",Mt="olHXzI";const St=(e,o)=>{const{autocomplete:r,className:i,styles:a,id:s,placeholder:c,onFocus:p,onBlur:d,onMouseDown:f,onKeyDown:m,disabled:v,required:h,value:g,filterQuery:y,isOpen:b,setWrapperRef:x,onClick:w,ariaAttributes:O,onInput:E,isValid:C,shouldShowValidityIndication:L,options:k,deviceType:M,lang:S}=e,D=n.useMemo((()=>"Tablet"===M),[M]),P=n.useMemo((()=>D&&!r?n.createElement("div",{className:kt},n.createElement("input",{value:g,required:h,className:Mt,tabIndex:-1})):null),[D,r,g,h]),j=I({ariaAttributes:O,lang:S});return n.createElement("div",{ref:x,className:a.selectorWrapper},n.createElement("input",t()({className:l(u(R.input),{[i]:!0,[a.invalid]:L&&!C}),"aria-invalid":L&&!C,"data-testid":"input-trigger",onClick:w,onKeyDown:m,placeholder:c.text,value:y||(null==(A=k.find((e=>e.value===g)))?void 0:A.text)||"",disabled:v,required:h,onMouseDown:f,type:D&&!r?"button":"text",role:"combobox",lang:j.lang},j.ariaAttributes,{"aria-haspopup":"listbox","aria-required":h,"aria-disabled":v,"aria-autocomplete":"list","aria-expanded":b,"aria-controls":s,onInput:E,onBlur:d,onFocus:p,ref:o})),P,n.createElement(Ot,{styles:a,isOpen:b}));var A};var It=n.forwardRef(St);const Dt={placement:"bottom-start",modifiers:[{name:"flip",options:{boundary:"clippingParents",fallbackPlacements:["top-start","bottom-start"],allowedAutoPlacements:["top-start","bottom-start"]}},{name:"computeStyles",options:{roundOffsets:!1}}]},Pt=(e,r)=>{const{className:i,styles:a,id:s,placeholder:l,onFocus:c,onSelectedOptionChange:w=lt,onBlur:O,disabled:E,required:C,value:L,options:k,setDesignableListElem:M,forceOpenDesignableList:S,onClick:I,ariaAttributes:D,isPopupPage:P,autocomplete:j,filteredOptions:A=[],setFilteredOptions:B,resetFilteredOptions:N,onFilterQueryChange:T=lt,onOpenedChange:W=lt,opened:_=!1,filterQuery:H,isValid:q,shouldShowValidityIndication:U,portalClassName:z,scopedClassName:K,deviceType:Q,lang:Z,isComboBoxSelectionFeedbackExperimentOpen:$}=e,[G,J]=n.useState(200),Y=j?[p,v,x]:[p,v,d,x],{hoveredOptionIndex:X,setHoveredOptionIndex:ee,onKeyDown:te}=(e=>{let{isListOpen:t,openListFn:n=wt,closeListFn:r=wt,openListKeyCodes:i=[],closeListKeyCodes:a=[],keyCodesToExcludeFromPreventDefault:s=[],initialHoveredOptionIndex:l=0,listLength:c,circularMode:u=!1,resetOnListClose:p=!1,resetOnLengthChange:d=!1}=e;const[f,m]=o().useState(l),h=ft(c,c),y=ft(t,t);o().useEffect((()=>{h!==c&&d&&m(f===l?l:0)}),[f,d,h,c,m,l]),o().useEffect((()=>{y!==t&&!t&&p&&m(l)}),[y,t,l,m,p]);const x=o().useCallback(((e,o)=>{t&&a.includes(e)?(o(),r()):!t&&i.includes(e)&&(o(),n())}),[r,a,t,n,i]);return{onKeyDown:o().useCallback(((e,n)=>{const{keyCode:o}=e,r=s&&s.includes(o)?()=>{}:()=>e.preventDefault();let i=f,l=!1;const p=e=>{i=e,l=!0,m(i)};switch(o){case v:t&&a.includes(v)&&e.stopPropagation();break;case b:r(),f+1=0?p(f-1):u&&p(c-1)}x(o,r),null==n||n(i,l)}),[u,x,f,c,s,t,a]),hoveredOptionIndex:f,setHoveredOptionIndex:m}})({isListOpen:_,openListFn:()=>W(!0),closeListFn:()=>{W(!1),N()},initialHoveredOptionIndex:l?-1:0,openListKeyCodes:[d,p],closeListKeyCodes:Y,listLength:A.length}),{ref:ne,setRef:oe,popper:re,setPopper:ie,styles:ae,attributes:se,poppersWrapper:le,mountPortalPoppersWrapper:ce,unMountPortalPoppersWrapper:ue}=at({id:s,popperOptions:Dt,className:K+" css-editing-scope",containerId:"main_MF"}),pe=n.useMemo((()=>_||S),[_,S]);n.useEffect((()=>{pe?ce():ue()}),[pe,ce,ue]),xt([ne,re],(()=>W(!1)));const de=n.useCallback((()=>{if(ne){const e=ct(ne);e!==G&&J(e)}}),[ne,G]),fe=()=>{de();var e;_||(null==r||null==(e=r.current)||e.focus());W(!_)},me=(e,t)=>{e.preventDefault(),ee(t),w(k[t].value)},ve=e=>{let{optionValue:t,toggleList:n=!0}=e;if(T(""),N(),w(t),n){fe();var o;if($)null==r||null==(o=r.current)||o.focus()}},he=n.useCallback((()=>{ne&&J(ct(ne))}),[ne]);F({elem:ne,callback:he});const ge={className:i,styles:a,id:s,onFocus:c,onBlur:O,disabled:E,required:C,value:L,options:k,placeholder:l,isOpen:pe,hoveredOptionIndex:X,onClick:I,ariaAttributes:D,filteredOptions:A,autocomplete:j,deviceType:Q,isValid:q,shouldShowValidityIndication:U,lang:Z};return n.createElement(n.Fragment,null,j||"Tablet"===Q?n.createElement(It,t()({},ge,{setWrapperRef:oe,ref:r,onMouseDown:fe,onKeyDown:e=>{const{keyCode:t}=e;te(e,(n=>{if(_&&A.length>0)switch(t){case m:return void me(e,0);case f:return void me(e,A.length-1)}if(t===p&&A[n]){ve({optionValue:A[n].value,toggleList:!1});const e=k.findIndex((e=>e.value===A[n].value));ee(e)}}))},filterQuery:H,onInput:e=>{ve({optionValue:"",toggleList:!1}),T(e.target.value),B(e.target.value?((e,t)=>t.filter((t=>t.text.toLowerCase().includes(e.toLowerCase()))).sort(((t,n)=>t.text.toLowerCase().startsWith(e.toLowerCase())?-1:n.text.toLowerCase().startsWith(e.toLowerCase())?1:0)))(e.target.value,k):k),ee(-1),_||W(!0)}})):n.createElement(Ct,t()({},ge,{setWrapperRef:oe,designableList:!0,ref:r,onMouseDown:e=>{e.preventDefault(),fe()},onKeyDown:e=>{const t=[p,b,g],{keyCode:n,key:o}=e;te(e,((i,a)=>{if(_)switch(n){case x:return void(null==r||r.current.focus());case m:return void me(e,0);case f:return void me(e,k.length-1)}t.includes(n)&&a&&ve({optionValue:k[i].value,toggleList:!1}),((e,t,n)=>{var o;if([p,b,g,h,y,d,v].includes(n))return;const r=e.toLowerCase()!==(null==(o=k[X])?void 0:o.text[0].toLowerCase()),i=k.findIndex(((n,o)=>n.text[0].toLowerCase()===e.toLowerCase()&&(o>t||r)));i>-1&&(ve({optionValue:k[i].value,toggleList:!1}),ee(i))})(o,i,n)}))}})),le&&pe&&(0,V.createPortal)(n.createElement("div",t()({ref:ie,className:z,style:{...ae.popper,width:G+"px",zIndex:P?"var(--portals-z-index)":"var(--above-all-z-index)"}},se.popper),n.createElement(bt,{id:s,value:L,setDesignableListElem:M,onSelectedOptionChange:(e,t)=>ve({optionValue:e,toggleList:t}),options:A,hoveredOptionIndex:X,setHoveredOptionIndex:ee,filteredOptions:A,className:u(R.list),isComboBoxSelectionFeedbackExperimentOpen:$})),le))};var jt=n.forwardRef(Pt);const At=()=>{},Bt=(e,o)=>{var r;const{id:i,className:s,customClassNames:c=[],skin:p,label:d,styles:f,value:m,children:v,required:h,isDisabled:g,placeholder:y,shouldShowValidityIndication:b,errorMessageType:x,validateValueAndShowIndication:w=At,onBlur:O=At,onFocus:E=At,onChange:C=At,onSelectedOptionChange:L=At,onClick:k=At,onDblClick:M=At,onMouseEnter:S=At,onMouseLeave:I=At,designableList:D=!1,options:P,setDesignableListElem:j,forceOpenDesignableList:A=!1,ariaAttributes:B,isPopupPage:V,autocomplete:F,setFilteredOptions:T=At,resetFilteredOptions:W=At,onFilterQueryChange:_=At,onOpenedChange:H=At,opened:q=!1,filterQuery:U,isValid:z,componentViewMode:K,portalClassName:Q,scopedClassName:Z,translations:$,deviceType:G,lang:J,isComboBoxSelectionFeedbackExperimentOpen:Y}=e,X=e.filteredOptions||e.options,ee=n.useRef(null);n.useImperativeHandle(o,(()=>({focus:()=>{var e;null==(e=ee.current)||e.focus()},blur:()=>{var e;null==(e=ee.current)||e.blur(),w()},setCustomValidity:e=>{var t;"message"===e.type&&(null==(t=ee.current)||t.setCustomValidity(e.message))}})));const te="ComboBoxInputVerticalMenuSkin"===p,ne=y&&y.value,oe=m===ne||ne&&""===m,re=l(f[p],f.root,s,u(R.root,...c),{[f.hasLabel]:!!d,[f.withRequiredIndication]:h,[f.withValidationIndication]:b}),ie=l(f.select,"has-custom-focus",{[f.extendedPlaceholderStyle]:oe}),ae=!d&&y.value&&!(null!=B&&B.label)?{...B||{},label:y.value}:B,se={ref:ee,className:ie,styles:f,id:i,onClick:k,onFocus:E,onSelectedOptionChange:e=>{L(e),w(),C({type:"change",compId:i})},onBlur:e=>{O(e),F&&w()},disabled:g,required:h,value:m,options:P,placeholder:y,ariaAttributes:ae,isPopupPage:V,autocomplete:F,setFilteredOptions:T,resetFilteredOptions:W,filteredOptions:X,onFilterQueryChange:_,onOpenedChange:H,opened:q,filterQuery:U,shouldShowValidityIndication:b,isValid:z,designableList:D,portalClassName:Q,scopedClassName:Z,deviceType:G,lang:J},le=n.createElement(n.Fragment,null,te?null:n.createElement("label",{className:l(f.label,u(R.label)),htmlFor:"collection_"+i},d),D?n.createElement(jt,t()({},se,{setDesignableListElem:j,forceOpenDesignableList:A,isComboBoxSelectionFeedbackExperimentOpen:Y})):n.createElement(Ct,t()({},se,{ref:ee})),n.createElement(N,{errorMessageType:x,errorMessage:null==(r=ee.current)?void 0:r.validationMessage,shouldShowValidityIndication:b,translations:$,componentViewMode:K}));return v({id:i,...a(e),className:re,onDblClick:M,onMouseEnter:e=>{g||S(e)},onMouseLeave:e=>{g||I(e)},content:le,ariaLabel:d})};var Nt=n.forwardRef(Bt),Rt={"with-validation-indication":"U1L4Fn",withValidationIndication:"U1L4Fn",invalid:"WFXN0y",select:"McLPII",ResponsiveComboBoxInputSkin:"atCxgF",responsiveComboBoxInputSkin:"atCxgF",arrow:"_zjxIR",MembersComboBoxInputSkin:"YGSgR3",membersComboBoxInputSkin:"YGSgR3",ComboBoxInputSkin:"PDy5M6",comboBoxInputSkin:"PDy5M6",root:"jNPppN","selector-wrapper":"RJZaGO",selectorWrapper:"RJZaGO",placeholder:"U5WS_f","extended-placeholder-style":"T6F83Z",extendedPlaceholderStyle:"T6F83Z",icon:"hR0JZE",svg_container:"a6U9y6",svgContainer:"a6U9y6","arrow-open":"VhA5n_",arrowOpen:"VhA5n_",label:"psSgWb",hasLabel:"JploZQ","with-required-indication":"kxLeFB",withRequiredIndication:"kxLeFB",option:"R4tv1w"};const Vt=(e,o)=>{const{options:r}=e,[i,s]=n.useState(r);return n.useEffect((()=>{s(r)}),[r]),n.createElement(Nt,t()({ref:o},e,{filteredOptions:i,setFilteredOptions:s,resetFilteredOptions:()=>{s(r)},styles:Rt}),(o=>{let{id:r,className:i,onDblClick:s,onMouseEnter:l,onMouseLeave:c,content:u}=o;return n.createElement("div",t()({id:r},a(e),{className:i,onDoubleClick:s,onMouseEnter:l,onMouseLeave:c}),u)}))};const Ft=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`));var Tt;const Wt={ComboBoxInput:{component:n.forwardRef(Vt),controller:(Tt=e=>{let{mapperProps:t,controllerUtils:n,stateValues:o}=e;const{updateProps:r}=n,{scopedClassName:i}=o,{setValidityIndication:a,onValueChange:s}=(e=>({onValueChange:t=>{e({value:t})},setValidityIndication:t=>{e({shouldShowValidityIndication:t})}}))(r);return{...t,onSelectedOptionChange:s,setValidityIndication:a,onFilterQueryChange:e=>{r({filterQuery:e})},onOpenedChange:e=>{r({opened:e})},scopedClassName:i}},{useComponentProps:(e,t,n)=>{const o=(e=>({...e,updateStyles:t=>{const n=Object.entries(t).reduce(((e,[t,n])=>{return{...e,[(o=t,o.startsWith("--")?t:Ft(t))]:void 0===n?null:n};var o}),{});e.updateStyles(n)}}))(n);return Tt({mapperProps:e,stateValues:t,controllerUtils:o})}})}}}(),i}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[ComboBoxInput].1ebab521.bundle.min.js.map